#ifndef __THREAD_POOL__
#define __THREAD_POOL__
#include "taskQueue.h"
typedef struct threadPool_s {
    pthread_t* tidArr;
    int workerNum;
    taskQueue_t taskQueue;
} threadPool_t;

int initThreadPool(threadPool_t* pthreadPool, int workerNum);
int tcpInit(char* ip, char* port, int* psockfd);
void* threadFunc(void* arg);
int makeWorker(threadPool_t* pthreadPool);
int epollAdd(int epfd, int fd);
int epollDel(int epfd, int fd);
int loginUsersql(char* userName);
int isexistUser(char* userName);
#endif


